;
var moduleA = (function(){
    var obj = {}
    var name = 'xiaoming'
    var age = 10
    
    var flag = true
    
    function sum(num1, num2){
        return num1 + num2
    }
    
    if(flag){
        console.log(sum(10,20));
    }
    obj.flag = flag;
    obj.sum = sum;
    return obj
})()

